package com.kinghunt.misp.dal.dao.devicex;

import com.kinghunt.misp.dal.model.devicex.DeviceDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 设备基本信息表
* Created by Mybatis Generator on 2025/02/28
*/
public interface DeviceDAO {
    int deleteByPrimaryKey(Long deviceId);

    int insert(DeviceDO record);

    int insertSelective(DeviceDO record);

    DeviceDO selectByPrimaryKey(Long deviceId);

    int updateByPrimaryKeySelective(DeviceDO record);

    int updateByPrimaryKey(DeviceDO record);
    List<DeviceDO> selectDeviceList(@Param("device")DeviceDO record,
                                @Param("offset")int offset,
                                @Param("size")int size);

    int selectDeviceListCount(@Param("device")DeviceDO record);

    List<DeviceDO> selectByIds(@Param("list") List<Long> deviceIds);

    List<DeviceDO> selectByDeviceNo(@Param("deviceNo")String deviceNo);
}